package user

import (
	"publiclib/stateless"
)

type userService struct {
}

func NewUserService() *userService {
	return &userService{}
}

func (s *userService) Test(phone string) (*DBinfo, int, string) {
	userEntity := &UserEntity{}
	result, err := userEntity.Test(phone)
	if err != nil {
		return nil, stateless.ErrInternalError, err.Error()
	}

	return result, stateless.Success, ""
}
